﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebClient.Models.ViewModels.GroupViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <% var restaurant = Model.RestaurantModel.GetModel.LstObjModel[0]; %>
    <div id="content">
        <div id="container_new">
            <div id="div55">&nbsp;</div>
            <div id="divleft_approve">
                <div id="logingo">
                    <h1 class="h1"><b>Member Login</b></h1>
                    <% using (Html.BeginForm("LogOn", "Account"))
                       { %>
                        <table border="0" cellspacing="0" cellpadding="0" style="line-height:30px;">
                            <tr>
                                <td>UserName&nbsp;&nbsp;&nbsp;</td>
                                <td>
                                    <input type="text" name="LogOn_UserName" id="email" value="" maxlength="80" class="checkout_input" />
                                </td>
                                <td>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Password&nbsp;&nbsp;&nbsp;
                                </td>
                                <td>
                                    <input type="password" name="LogOn_Password" id="password" value="" maxlength="10" class="checkout_input" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2"><a onclick="xajax_sendpasshd2();" href="#">Forgot your password?</a></td>
                                <td colspan="2" align="right">
                                    <%= Html.Hidden("navbar_url", this.Url.RouteUrl(this.ViewContext.RouteData.Values))%>
                                    <%= Html.Hidden("navbar_idrestaurant", restaurant.ID)%>
                                    <input type="submit" class="submitbutton" name="sbt" id="sbt" value="Login" title="Enter your Username and password in the boxes provided to login, or click the 'register' button to create a profile for yourself." accesskey="s" />
                                </td>
                            </tr>
                        </table>
                   <% } %>
                </div>
                <br>
                <h1 class="h1">Register to make your Order</h1>    
                <div id="greyline"></div>
                <div id="formdiv">
                    <form id="myformlg" name="myformlg" method="post" action="javascript:void(null);">
                        <div id="checkout_left_block" style="width: 530px;">
                            <div><h2>Personal Details</h2></div>
                            <div id="clear"></div>
                            <div id="checkoutleft">UserName*</div>
                            <div id="checkoutlogin">
                                <input style="width:150px;" type="text" name="firstname" id="Text1" class="checkout_input" value="" maxlength="20" />
                            </div>
                            <div id="clear"></div>
                            <div id="checkoutleft">Password*</div>
                            <div id="checkoutlogin">
                                <input style="width:150px;" type="password" name="password1" id="password1" class="checkout_input" value="" maxlength="10" title="Your password should be at least 6 characters" />
                            </div>
                            <div id="clear"></div>
                            <div id="checkoutleft">Retype password*</div>
                            <div id="checkoutlogin">
                                <input style="width:150px;" type="password" name="password2" id="password2" class="checkout_input" value="" maxlength="10" />
                            </div>
                            <div id="clear"></div>
                            <div id="checkoutleft">E-Mail*</div>
                            <div id="checkoutlogin">
                                <input style="width:200px;" type="text" name="email1" id="email1" title="Your email will be used to send you a confirmation of your order and for the next time you login." class="checkout_input" value="" maxlength="80"  />
                            </div>
                            <div id="clear"></div>
                            <div id="checkoutleft">Name*</div>
                            <div id="checkoutlogin">
                                <input style="width:200px;" type="text" name="firstname" id="firstname" class="checkout_input" value="" maxlength="20" />
                            </div>
                            <div id="clear"></div>
                            <div id="checkoutleft">Phone</div>
                            <div id="checkoutlogin">
                                <input style="width:150px;" type="text" name="phone" id="phone" title="You can only make an order with a valid phone number!" class="checkout_phone" value="" maxlength="15" />
                            </div>
                            <div id="clear"></div>
                            <div id="checkoutleft">Address</div>
                            <div id="checkoutlogin">
                                <input style="width:400px;" type="text" name="gsm" id="gsm" title="By entering a mobile phone number you will be able to receive order confirmations by sms" class="checkout_phone" value="" maxlength="15" />
                            </div>
                            <div id="clear"></div>
                            <div style="padding-left: 10px;">&nbsp;</div>
                            <div id="check_app">
                                <input type="submit" name="sbt2" id="sbt2" value="Register" title="Click the button to proceed to delivery and payment details" onclick='xajax.$("sbt2").value="Registering..."; this.disabled=true; xajax_Savemy(xajax.getFormValues("myformlg")); return false;'  class="submitbutton" >
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div style="margin-top:10px;">&nbsp;</div>
            <div class="divright" style="height: 500px;">
                <% Html.RenderPartial("Templates/TH_Right", Model); %>
            </div>
        </div>
    </div>
</asp:Content>
